package entity;

import entity.Student;
import entity.Teacher;
import entity.Course;

public class SchoolSystemTest {
    public static void main(String[] args) {
        // 创建课程
        Course course1 = new Course("C001", "Java程序设计", "张老师");
        Course course2 = new Course("C002", "数据库原理", "李老师");

        // 创建学生和老师
        Student student = new Student("S001", "小明");
        Teacher teacher = new Teacher("T001", "张老师", "计算机学院");

        // 学生选课
        student.selectCourse(course1);
        student.selectCourse(course2);

        // 分别调用工作单方法
        System.out.println("=== 学生工作单 ===");
        student.printWorkSheet();

        System.out.println("=== 教师工作单 ===");
        teacher.printWorkSheet();

        // 学生退课
        student.dropCourse("C001");

        System.out.println("=== 退课后的课表 ===");
        student.printWorkSheet();

    }

}